" 删除括号
nnoremap <leader>d" :norm ds"<CR>
nnoremap <leader>d' :norm ds'<CR>
nnoremap <leader>d( :norm ds(<CR>
nnoremap <leader>d[ :norm ds[<CR>
nnoremap <leader>d{ :norm ds{<CR>

" 修改括号
nnoremap <leader>g" :norm cs"<CR>
nnoremap <leader>g' :norm cs'<CR>
nnoremap <leader>g( :norm cs(<CR>
nnoremap <leader>g[ :norm cs[<CR>
nnoremap <leader>g{ :norm cs{<CR>

nnoremap <leader>" :norm ysiw"<CR>
nnoremap <leader>' :norm ysiw'<CR>
nnoremap <leader>( :norm ysiw(<CR>
nnoremap <leader>[ :norm ysiw[<CR>
nnoremap <leader>{ :norm ysiw{<CR>

" 设置 F8 键切换 Tagbar 窗口
nnoremap <silent> <F8> :TagbarOpenAutoClose<CR>
nnoremap <silent> <c-F8> :TagbarClose<CR>

nnoremap <leader>gt :YcmCompleter GoTo<CR>
nnoremap <leader>gd :YcmCompleter GoToDefinition<CR>
nnoremap <leader>gh :YcmCompleter GoToDeclaration<CR>
nnoremap <leader>gr :YcmCompleter GoToReferences<CR>
nnoremap <leader>fi :YcmCompleter FixIt<CR>
